<?php

namespace app\http\middleware;
use think\facade\Request;
class Json
{
    public function handle($request, \Closure $next)
    {
        $Input = $request->getInput();
        if (is_json($Input)==false){
            return json(['code'=>303,'msg'=>'不支持数据类型格式']);
        }
        return $next($request);
    }
}